package com.maixun.lib_business_college.entity

import com.maixun.lib_comment.utils.TimeUtils

/**
 * @author：Lmoumou
 * @date：2020/11/5
 */
data class QABeen(
    var id: String = "",
    var title: String = "",
    var typeName: String = "",
    var description: String = "",
    var readNum: Int = 0,
    var answerNum: Int = 0,
    var createTime: String = "0"
) {
    fun getTimeStr(): String? {
        return try {
            val timeLong = createTime.toLong()
            TimeUtils.long2Str(timeLong, "yyyy-MM-dd HH:mm")
        } catch (e: Exception) {
            e.printStackTrace()
            null
        }
    }
}